Arrays.sort() vs Collections.sort()


Posted by Rich on 2022-08-10

差別是:

  1. Collections 是給 List 用的,Arrays 是給 array 用的。
  2. Collections 用 binary sort, Arrays 用 merge sort

連結










Related Posts

筆記:What the heck is the event loop anyway | Philip Roberts | JSConf EU

筆記:What the heck is the event loop anyway | Philip Roberts | JSConf EU

Vue 3 使用 axios 套件取得遠端資料

Vue 3 使用 axios 套件取得遠端資料

D45_ FE101

D45_ FE101


Comments